#ifndef SHOW_TIMES_H
#define SHOW_TIMES_H

template <typename T, typename U>
int show_times(const T& vec, const U& val) {
  int showtimes = 0;
  for (size_t i = 0; i < vec.size(); ++i) {
    if (vec[i] == val) {
      ++showtimes;
    }
  }
  return showtimes;
}
#endif  // SHOW_TIMES_H